/**
 * Created by ptt on 2016/5/27/0027.
 */
define([], function () {
    function checkDisable(e) {
        var searchButton = $("#searchContain").find("button.js-search");
        e.preventDefault();
        this.value !== "" ?
                searchButton.removeAttr("disabled").addClass("css-select") : searchButton.attr("disabled", "true").removeClass("css-select");
    }

    return {
        checkDisable: checkDisable
    };
});